package anli2;

public class Student {
    private String name;
    private String stuNo;
    private String sex;
    private Integer age ;

    public Student() {
    }

    public Student(String name, String stuNo, String sex, Integer age) {
        this.name = name;
        this.stuNo = stuNo;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    public String getStuNo() {
        return stuNo;
    }

    public Student setStuNo(String stuNo) {
        this.stuNo = stuNo;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public Student setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public Integer getAge() {
        return age;
    }

    public Student setAge(Integer age) {
        this.age = age;
        return this;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", stuNo='" + stuNo + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
